home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
msysjour
/
vol06
/
03
/
winedd
/
logger
< prev
next >
Wrap
Text File
|
1991-05-01
|
3KB
|
61 lines
#
# LOGGER embedded device driver application
#
# Compiler: MS C 6.0
#
# If C6_ASM is defined, the presence of C 6.0 is assumed and
# _asm keyword support is required. If C6_ASM is NOT defined,
# C 5.X compatible code is used.
# If INTERRUPT_DEVICE is defined, the interrupt handler is invoked
# by FEEDER via an INT instruction. If INTERRUPT_DEVICE is NOT defined,
# the interrupt handler is invoked by FEEDER via direct function call.
constant_options= -D C6_ASM -D INTERRUPT_DEVICE
name = logger
dll_name = driver
feed_name = feeder
icon_name = bolt
feed_icon_name = spoon
model = M
lib_model = S
ptrs_regs = snw
fp_option = e # e - Real/Emulator; a - Alternate
cc_options = -c -A$(model) -Gsw -Os -Zp -W3 $(constant_options)
cc_dll_options = -c -A$(ptrs_regs) -Gsw -Os -Zp -W3 $(constant_options)
ld_options = $(dll_name).lib $(model)libc$(fp_option)w libw /a:16 /map /noi /nod /noe
ld_dll_options = $(lib_model)dllc$(fp_option)w $(lib_model)libc$(fp_option)w libw /a:16 /map /noi /nod /noe
errorlog = $(name).err
$(name).obj: $(name).c defs.h logmsg.h device.h $(name)
cl $(cc_options) $*.c >> $(errorlog)
$(dll_name).obj: $(dll_name).c devdefs.h intnum.h dprivate.h device.h $(name)
cl $(cc_dll_options) $*.c >> $(errorlog)
$(feed_name).obj: $(feed_name).c dprivate.h device.h intnum.h logmsg.h fdefs.h $(name)
cl $(cc_options) $*.c >> $(errorlog)
$(name).res: $(name).rc $(icon_name).ico defs.h
rc -r $(name).rc >> $(errorlog)
$(feed_name).res: $(feed_name).rc $(feed_icon_name).ico fdefs.h
rc -r $(feed_name).rc >> $(errorlog)
$(dll_name).dll: $(dll_name).obj $(dll_name).def
echo $(dll_name).dll: >> $(errorlog)
link $(dll_name).obj , $(dll_name).dll , $(dll_name).map , $(ld_dll_options) , $(dll_name).def >> $(errorlog)
rc $(dll_name).dll > nul
implib $(dll_name).lib $(dll_name).def
$(name).exe: $(name).obj $(name).res $(name).def $(icon_name).ico $(dll_name).lib
echo $(name).exe: >> $(errorlog)
link $(name).obj , $(name).exe , $(name).map , $(ld_options) , $(name).def >> $(errorlog)
rc $(name).res > nul
$(feed_name).exe: $(feed_name).obj $(feed_name).res $(feed_name).def $(feed_icon_name).ico
echo $(feed_name).exe: >> $(errorlog)
link $(feed_name).obj , $(feed_name).exe , $(feed_name).map , $(ld_options) , $(feed_name).def >> $(errorlog)
rc $(feed_name).res > nul